/**
 * \file       random.h
 * \brief      get random number
 * \version    1.0
 * \author     dragon,chinagnu@gmail.com
 * \date       2008-05-12
 * \remarks    there is initial Version
 * \bug        unknown
 * \todo       get random number
 *
 */

#ifndef    random_H
#define    random_H

#include "dragon.h"

/// random get value between a range
class random
{
public:
	 random(void)
	 {
		  int i;
		  time_t t;
		  srand((unsigned)time(&t));
	 }
	 ~random(void){};
	 int get_random_value(int max)
	 {
		  return (rand()%max);	
	 }
private:

};

#endif
